<?php

if ( $_GET['hash'] != 'asd89gq43plt' ) {
	die();
}

session_start();
require('../conf/runtime.conf.php');
require( DOM_PATH . 'Dom.init.php');

DomSql::init(MYSQL_HOST, MYSQL_USERNAME,MYSQL_PASSWORD,MYSQL_DATABASE);
DomAr::init();

$clients = Client::query()->orderBy('t.id')->commit()->toArray();

if ( !$clients ) {
	die();
}

foreach ( $clients as $client ) {
	$client->addTask();	
}

echo 'Done!';
?>